<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>03_call方法-参数的使用</title>
    </head>
    <body>
        <script>
            var person = {
                name:'马志强'
            }

            var dog = {
                name:'富贵',
                eat:function(a){
                    console.log(this);
                    console.log('狗粮' + a);
                }
            }

            // dog.eat('水');

            dog.eat.call(person,'激浪');

        </script>
    </body>
</html>